/*
 * =====================================================================================
 *
 *       Filename:  arg.h
 *
 *    Description:  header file of config file parsing module
 *
 *        Version:  1.0
 *        Created:  08/06/2009 11:56:30 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Zhao Zhao
 *        Company:  ndssl
 *
 * =====================================================================================
 */

#pragma once

#include <map>
#include <vector>
#include <string>

using namespace std;


class Arg
{
public:
	Arg();
	~Arg();

	void Configure(const char* measure);
	vector<string> GetValue(const char* attr);
private:
	char* ProcessComment(char* line); //discard comment and spaces and tabs
	void ParseParam(const char* line); //read params
	
private:

	map<string, vector<string> > param; //parameters read from configure file
};

